package cn.com.chengmandian.erp.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * ERP系统-协同工作-订单信息
 * </p>
 *
 * @author AutoGenerator
 */
@Getter
@Setter
@TableName("erp_work_order_info")
@ApiModel(value = "ErpWorkOrderInfo对象", description = "ERP系统-协同工作-订单信息")
public class ErpWorkOrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("关联事项")
    private Integer projectId;

    @ApiModelProperty("标签，多个逗号隔开，起始、结束均包含逗号")
    private String tags;

    @ApiModelProperty("订单标题")
    private String name;

    @ApiModelProperty("状态 1-未开始 2-进行中 3-已完成 4-已废弃")
    private Integer status;

    @ApiModelProperty("负责人")
    private Integer leaderUser;

    @ApiModelProperty("计划开始日期")
    private Date startDate;

    @ApiModelProperty("计划截至日期")
    private Date endDate;

    @ApiModelProperty("实际开始日期")
    private Date realStartDate;

    @ApiModelProperty("实际结束日期")
    private Date realEndDate;

    @ApiModelProperty("总任务数")
    private Integer taskNumber;

    @ApiModelProperty("未开始任务数")
    private Integer readyNumber;

    @ApiModelProperty("进行中任务数")
    private Integer runningNumber;

    @ApiModelProperty("已完成任务数")
    private Integer completeNumber;

    @ApiModelProperty("已关闭任务数")
    private Integer closeNumber;

    @ApiModelProperty("是否删除 1-删除 0-未删除")
    @TableLogic(value = "0" ,delval = "1")
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date modifyTime;

}
